package com.ktwlsoft.archivemanage.payload;

import lombok.Data;

/**
 * TemFileResult
 */
@Data
public class TemFileResult {

    private Boolean complete;

    private String url;

    private String fileName;

    private String message;

    private String fileType;

    public TemFileResult() {
    }


    public TemFileResult(Boolean complete, String url, String fileName) {
        this.complete = complete;
        this.url = url;
        this.fileName = fileName;
        String[] typeSlit = url.split(".");
        this.fileType = typeSlit.length == 2 ? typeSlit[1] : "FI";
    }

    public TemFileResult(String message) {
        this(false, "", "");
        this.message = message;
    }
}